package com.cn.hnust.service;

import java.util.List;

import com.cn.hnust.pojo.Tavern;
import com.cn.hnust.util.Page;

public interface ITavernService {
	public Tavern getUserById(Integer userId) throws Exception;

	public List<Tavern> getUsers();

	public Tavern getUser(int id);

	public int insert(Tavern user);

	public List<Tavern> selectPersons(String tavern_name,Page page);

	public List<Tavern> queryAllRecord(Page page);

	public int getCount();
	
	public int updateByPrimaryKey(Tavern record);
	
	public int getCountmh(String tavern_name);

	public int delTavern(int tavern_id);
}
